From 3f3404d1273da0a83bba239eb7ce19bc660ebc7e Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Thu, 21 Dec 2006 12:05:41 +0000 Subject: [PATCH] [XM] Throw proper exception for xm console for unstarted domains. Signed-off-by: Alastair Tse --- tools/python/xen/xm/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 3c118172ae..450d797354 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -1244,7 +1244,7 @@ def xm_console(args): if quiet: sys.exit(1) else: - raise Exception("Domain is not started") + raise xmlrpclib.Fault(0, "Domain '%s' is not started" % dom) console.execConsole(domid) -- 2.30.2